﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OandPRbyUIDDT.aspx.cs" Inherits="StatisticData_OnceandPassRate_OandPRbyUIDDT" Title="按时间段统计各测试员合格率" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script type="text/javascript" src="../../js/my97datepicker/WdatePicker.js"></script>
    <div style=" width:100%"> 
    <br />
    <div style="height: 31px; width: 100%">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div style="float:left; clear:left; width:80%">
    <table style="vertical-align: top">
        <tr>
            <td style="vertical-align: text-top; width: 67px; height: 45px;">
                <asp:Label ID="Label4" runat="server" Text="起始时间：" Width="115px" Height="18px"></asp:Label></td>
            <td style="width: 159px; height: 45px;">
            
            
            <input type="text" runat="server" id="TextBox1" 
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                
                &nbsp;</td>
                
            <td style="vertical-align: text-top; width: 81px; height: 45px;">
                <asp:Label ID="Label5" runat="server" Text="终止时间：" Width="113px"></asp:Label></td>
            <td style="width: 85px; vertical-align: top; height: 45px;">
            
                <input type="text" runat="server" id="TextBox2" 
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                
            </td>
        </tr>
        </table>
        </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div style="float:left;clear:right; height: 47px; width: 15%;">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查  询" />
    </div>
    </div>
    <br /> 
    <div style="clear:both; width:100%">
    <div style="clear:left;float:left ">
        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
            AutoDataBind="true" BestFitPage="False" Height="500px" 
            ReportSourceID="CrystalReportSource1" Width="500px" 
            PageToTreeRatio="101" Visible="False" />
        <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
        </CR:CrystalReportSource>
    </div> 
    <div style="float:left ">
        <CR:CrystalReportViewer ID="CrystalReportViewer2" runat="server" 
            AutoDataBind="true" Height="500px" Width="500px" BestFitPage="False" 
            PageToTreeRatio="101" ReportSourceID="CrystalReportSource2" 
            Visible="False" />   
        <CR:CrystalReportSource ID="CrystalReportSource2" runat="server">
        </CR:CrystalReportSource>
    </div> 
    </div> 
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
    <div visible="false" >
        <table style="width: 100%">
            <tr>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="各测试员一次合格率：" Visible="False"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="Label7" runat="server" Text="各测试员最终合格率：" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                        GridLines="None" onpageindexchanging="GridView1_PageIndexChanging" 
                        PageSize="5">
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <Columns>
                            <asp:BoundField DataField="DayTime" HeaderText="测试员" />
                            <asp:BoundField DataField="Total" HeaderText="检验数" />
                            <asp:BoundField DataField="Element" HeaderText="合格数" />
                            <asp:BoundField DataField="Quantity" DataFormatString="{0:P}"  
                                HeaderText="合格率" />
                        </Columns>
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
                <td>
                    <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                        GridLines="None" onpageindexchanging="GridView2_PageIndexChanging" 
                        PageSize="5">
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <Columns>
                            <asp:BoundField DataField="DayTime" HeaderText="测试员" />
                            <asp:BoundField DataField="Total" HeaderText="检验数" />
                            <asp:BoundField DataField="Element" HeaderText="合格数" />
                            <asp:BoundField DataField="Quantity" DataFormatString="{0:P}"  
                                HeaderText="合格率" />
                        </Columns>
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    <br />
    <br />
    </div> 
    </ContentTemplate>
    </asp:UpdatePanel>
    </div>
</asp:Content>

